public class inherit {
    public static String name="xiaobai";
    public int age=10;
    static {
        System.out.println(name);
    }
    public  inherit(){
        System.out.println("正在唱歌");
        //System.out.println(name);
    }

    public static void main(String[] args) {
        //System.out.println(inherit.name);
        inherit obj=new inherit();
        //System.out.println(obj.name);
        inherit obj1=new inherit();
    }
}
